package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequset;
import com.example.springboot.entity.Book;
import com.example.springboot.entity.Borrow;
import com.example.springboot.mapper.po.BorrowReturCountPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {

    List<Book> list();

    List<Book> listByCondition(BaseRequset baseRequset);

    void save(Book obj);

    void updateById(Book obj);

    void deleteById(Integer id);

    Book getById(Integer id);
    Book getByNo(String bookNo);

    void updateNumByNo(String bookNo);


}
